<?php /* Smarty version 2.6.19, created on 2008-07-12 22:41:16
         compiled from inc/pager.tpl */ ?>
<!-- Пейджинг -->
<?php if ($this->_tpl_vars['pages'] > 1): ?>
<?php unset($this->_sections['pager']);
$this->_sections['pager']['name'] = 'pager';
$this->_sections['pager']['start'] = (int)0;
$this->_sections['pager']['loop'] = is_array($_loop=$this->_tpl_vars['pages']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['pager']['step'] = ((int)1) == 0 ? 1 : (int)1;
$this->_sections['pager']['show'] = true;
$this->_sections['pager']['max'] = $this->_sections['pager']['loop'];
if ($this->_sections['pager']['start'] < 0)
    $this->_sections['pager']['start'] = max($this->_sections['pager']['step'] > 0 ? 0 : -1, $this->_sections['pager']['loop'] + $this->_sections['pager']['start']);
else
    $this->_sections['pager']['start'] = min($this->_sections['pager']['start'], $this->_sections['pager']['step'] > 0 ? $this->_sections['pager']['loop'] : $this->_sections['pager']['loop']-1);
if ($this->_sections['pager']['show']) {
    $this->_sections['pager']['total'] = min(ceil(($this->_sections['pager']['step'] > 0 ? $this->_sections['pager']['loop'] - $this->_sections['pager']['start'] : $this->_sections['pager']['start']+1)/abs($this->_sections['pager']['step'])), $this->_sections['pager']['max']);
    if ($this->_sections['pager']['total'] == 0)
        $this->_sections['pager']['show'] = false;
} else
    $this->_sections['pager']['total'] = 0;
if ($this->_sections['pager']['show']):

            for ($this->_sections['pager']['index'] = $this->_sections['pager']['start'], $this->_sections['pager']['iteration'] = 1;
                 $this->_sections['pager']['iteration'] <= $this->_sections['pager']['total'];
                 $this->_sections['pager']['index'] += $this->_sections['pager']['step'], $this->_sections['pager']['iteration']++):
$this->_sections['pager']['rownum'] = $this->_sections['pager']['iteration'];
$this->_sections['pager']['index_prev'] = $this->_sections['pager']['index'] - $this->_sections['pager']['step'];
$this->_sections['pager']['index_next'] = $this->_sections['pager']['index'] + $this->_sections['pager']['step'];
$this->_sections['pager']['first']      = ($this->_sections['pager']['iteration'] == 1);
$this->_sections['pager']['last']       = ($this->_sections['pager']['iteration'] == $this->_sections['pager']['total']);
?>
	<a href="/admin<?php echo $this->_tpl_vars['sys_action_path']; ?>
/<?php echo $this->_tpl_vars['uri']; ?>
<?php echo $this->_sections['pager']['index']; ?>
/"><?php echo $this->_sections['pager']['index']; ?>
</a>
<?php endfor; endif; ?>
<?php endif; ?>
<!--// Пейджинг -->